home *** CD-ROM | disk | FTP | other *** search
- package javax.management;
-
- import java.security.BasicPermission;
-
- public class MBeanTrustPermission extends BasicPermission {
- private static final long serialVersionUID = -2952178077029018140L;
-
- public MBeanTrustPermission(String var1) {
- this(var1, (String)null);
- }
-
- public MBeanTrustPermission(String var1, String var2) {
- super(var1, var2);
- if (var2 != null && var2.length() > 0) {
- throw new IllegalArgumentException("MBeanTrustPermission actions must be null: " + var2);
- } else if (!var1.equals("register") && !var1.equals("*")) {
- throw new IllegalArgumentException("MBeanTrustPermission: Unknown target name [" + var1 + "]");
- }
- }
- }
-